function Person(name, age) {
  this.name = name;
  this.age = age;
}
function _new(constructor, ...payload) {
  const obj = new Object();
  obj.__proto__ = constructor.prototype;
  const result = constructor.apply(obj, payload);
  return typeof(result) === 'object' ? result : obj;
}

const person1 = _new(Person, "yz", 18);
console.log(person1);

